import request from '@/utils/request'

//提现审核列表
export function withdrawalPage(query) {
    return request({
      url: "/withdrawal/page",
      method: "get",
      params: query,
    });
}
//商家申请提现审核
export function withdrawalApproval(data) {
    return request({
        url: '/withdrawal/approval',
        method: 'post',
        data: data
    })
}






// 查询店铺列表
export function listStore(query) {
    return request({
        url: '/store/page',
        method: 'get',
        params: query
    })
}

// 查询店铺详细
export function getStore(id) {
    return request({
        url: '/system/store/' + id,
        method: 'get'
    })
}

// 新增店铺
export function addStore(data) {
    return request({
        url: '/store/add',
        method: 'post',
        data: data
    })
}

// 修改店铺
export function updateStore(data) {
    return request({
        url: '/system/store',
        method: 'put',
        data: data
    })
}

// 删除店铺
export function delStore(id) {
    return request({
        url: `/store/delete/${id}`,
        method: 'get'
    })
}

// 获取省市区id
export function addressPid(query) {
    return request({
        url: '/address/pid',
        method: 'get',
        params: query
    })
}

//商家入驻
export function storeEnter(query) {
    return request({
        url: '/storeEnter/page',
        method: 'get',
        params: query
    })
}




//审核入驻商家通过
export function checkStorePass(query) {
    return request({
      url: "/store/passTheAudit",
      method: "post",
      data: query,
    });
}

//审核入驻商家拒绝
export function checkStoreRefuse(query) {
    return request({
      url: "/store/apply",
      method: "post",
      data: query,
    });
}